package com.chixing.day04.JiChengTest;

public class TestComputer {
   public static void main(String[] args) {
      Cpu c1 = new Cpu();
      c1.setCupId(1001);
      c1.setCupType("Intel");
      c1.setCpCity("英特尔");
      Cpu c2 = new Cpu(1002, "AMD", "超威半导体");

      System.out.println(c1.getCupId() + " " + c1.getCupType() + " " + c1.getCpCity());
      System.out.println(c2.getCupId() + " " + c2.getCupType() + " " + c2.getCpCity());

      VideoCard v1 = new VideoCard();
      v1.setVideoId(1004);
      v1.setVideoType("GTX1050Ti");
      v1.setVideCity("英伟达");
      VideoCard v2 = new VideoCard(1005, "RTX1060", "英伟达");
      System.out.println(v1.getVideoId() + " " + v1.getVideoType() + " " + v1.getVideCity());
      System.out.println(v2.getVideoId() + " " + v2.getVideoType() + " " + v2.getVideCity());

   }
}
